package com.my.study.springframework.aop;

import java.lang.reflect.Method;

/**
 * Part of a {@link Pointcut}: Checks whether the target method is eligible for advice.
 *
 * @author: yidujun
 * @create: 2021/07/14 15:02
 */
public interface MethodMatcher {

    /**
     * Perform static checking whether the given method matches
     *
     * @param method the candidate method
     * @param target the target class
     * @return
     */
    boolean matches(Method method, Class<?> target);

}
